package cn.liontalk.controller;

import cn.liontalk.common.result.Result;
import cn.liontalk.entity.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author: 周哲
 * @package: cn.liontalk.controller
 * @description:
 * @date: 2019/1/21 10:56
 * @version: V1.0
 */
@Controller
@RequestMapping(value = "/user")
public class UserController {


    @RequestMapping(value = "/info")
    @ResponseBody
    public Result<User> getUserInfo(User user){
        return Result.success(user);
    }

}
